home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4707 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 74 65 78 61 73 |Path: ne|ws.texas|
|00000010| 2e 6e 65 74 21 75 73 65 | 6e 65 74 0a 46 72 6f 6d |.net!use|net.From|
|00000020| 3a 20 4d 69 63 68 61 65 | 6c 20 44 6f 75 67 6c 61 |: Michae|l Dougla|
|00000030| 73 73 20 3c 6d 69 6b 65 | 64 6f 75 67 40 74 65 78 |ss <mike|doug@tex|
|00000040| 61 73 2e 6e 65 74 3e 0a | 4e 65 77 73 67 72 6f 75 |as.net>.|Newsgrou|
|00000050| 70 73 3a 20 63 6f 6d 70 | 2e 6c 61 6e 67 2e 63 0a |ps: comp|.lang.c.|
|00000060| 53 75 62 6a 65 63 74 3a | 20 52 65 3a 20 66 66 6c |Subject:| Re: ffl|
|00000070| 75 73 68 28 73 74 64 6f | 75 74 29 0a 44 61 74 65 |ush(stdo|ut).Date|
|00000080| 3a 20 54 75 65 2c 20 30 | 36 20 46 65 62 20 31 39 |: Tue, 0|6 Feb 19|
|00000090| 39 36 20 31 30 3a 31 33 | 3a 33 30 20 2d 30 36 30 |96 10:13|:30 -060|
|000000a0| 30 0a 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |0.Organi|zation: |
|000000b0| 54 65 78 61 73 20 4e 65 | 74 77 6f 72 6b 69 6e 67 |Texas Ne|tworking|
|000000c0| 2c 20 49 6e 63 2e 0a 4d | 65 73 73 61 67 65 2d 49 |, Inc..M|essage-I|
|000000d0| 44 3a 20 3c 33 31 31 37 | 37 45 32 41 2e 32 37 38 |D: <3117|7E2A.278|
|000000e0| 31 45 34 39 34 40 74 65 | 78 61 73 2e 6e 65 74 3e |1E494@te|xas.net>|
|000000f0| 0a 52 65 66 65 72 65 6e | 63 65 73 3a 20 3c 34 65 |.Referen|ces: <4e|
|00000100| 75 6a 30 73 24 32 39 67 | 40 73 69 66 6f 6e 2e 63 |uj0s$29g|@sifon.c|
|00000110| 63 2e 6d 63 67 69 6c 6c | 2e 63 61 3e 0a 4e 4e 54 |c.mcgill|.ca>.NNT|
|00000120| 50 2d 50 6f 73 74 69 6e | 67 2d 48 6f 73 74 3a 20 |P-Postin|g-Host: |
|00000130| 6d 69 6c 6c 65 6e 69 75 | 6d 2e 74 65 78 61 73 2e |milleniu|m.texas.|
|00000140| 6e 65 74 0a 4d 69 6d 65 | 2d 56 65 72 73 69 6f 6e |net.Mime|-Version|
|00000150| 3a 20 31 2e 30 0a 43 6f | 6e 74 65 6e 74 2d 54 79 |: 1.0.Co|ntent-Ty|
|00000160| 70 65 3a 20 74 65 78 74 | 2f 70 6c 61 69 6e 3b 20 |pe: text|/plain; |
|00000170| 63 68 61 72 73 65 74 3d | 75 73 2d 61 73 63 69 69 |charset=|us-ascii|
|00000180| 0a 43 6f 6e 74 65 6e 74 | 2d 54 72 61 6e 73 66 65 |.Content|-Transfe|
|00000190| 72 2d 45 6e 63 6f 64 69 | 6e 67 3a 20 37 62 69 74 |r-Encodi|ng: 7bit|
|000001a0| 0a 58 2d 4d 61 69 6c 65 | 72 3a 20 4d 6f 7a 69 6c |.X-Maile|r: Mozil|
|000001b0| 6c 61 20 32 2e 30 20 28 | 58 31 31 3b 20 49 3b 20 |la 2.0 (|X11; I; |
|000001c0| 53 75 6e 4f 53 20 34 2e | 31 2e 34 20 73 75 6e 34 |SunOS 4.|1.4 sun4|
|000001d0| 6d 29 0a 54 6f 3a 20 6a | 63 6f 74 65 31 40 50 4f |m).To: j|cote1@PO|
|000001e0| 2d 42 6f 78 2e 4d 63 47 | 69 6c 6c 2e 43 41 0a 0a |-Box.McG|ill.CA..|
|000001f0| 6a 63 6f 74 65 31 40 50 | 4f 2d 42 6f 78 2e 4d 63 |jcote1@P|O-Box.Mc|
|00000200| 47 69 6c 6c 2e 43 41 20 | 77 72 6f 74 65 3a 0a 3e |Gill.CA |wrote:.>|
|00000210| 20 0a 3e 20 48 69 20 65 | 76 65 72 79 62 6f 64 79 | .> Hi e|verybody|
|00000220| 2c 0a 3e 20 0a 3e 20 49 | 20 68 61 76 65 20 61 20 |,.> .> I| have a |
|00000230| 73 6d 61 6c 6c 20 70 72 | 6f 62 6c 65 6d 20 77 69 |small pr|oblem wi|
|00000240| 74 68 20 61 20 70 72 6f | 67 72 61 6d 20 61 6e 20 |th a pro|gram an |
|00000250| 49 20 72 65 61 6c 6c 79 | 20 64 6f 6e 27 74 20 6b |I really| don't k|
|00000260| 6e 6f 77 0a 3e 20 77 68 | 61 74 20 74 6f 20 64 6f |now.> wh|at to do|
|00000270| 20 77 69 74 68 20 69 74 | 2e 20 45 76 65 72 79 74 | with it|. Everyt|
|00000280| 68 69 6e 67 20 67 6f 65 | 73 20 77 65 6c 6c 2c 20 |hing goe|s well, |
|00000290| 65 78 63 65 70 74 20 61 | 74 20 74 68 65 20 76 65 |except a|t the ve|
|000002a0| 72 79 0a 3e 20 65 6e 64 | 2c 20 77 68 65 72 65 20 |ry.> end|, where |
|000002b0| 49 20 68 61 76 65 20 61 | 6e 20 6f 75 74 70 75 74 |I have a|n output|
|000002c0| 20 66 75 6e 63 74 69 6f | 6e 28 20 69 74 27 73 20 | functio|n( it's |
|000002d0| 6a 75 73 74 20 61 20 62 | 75 6e 63 68 20 6f 66 0a |just a b|unch of.|
|000002e0| 3e 20 70 72 69 6e 74 66 | 27 73 20 74 6f 20 64 69 |> printf|'s to di|
|000002f0| 73 70 6c 61 79 20 74 68 | 65 20 72 65 73 75 6c 74 |splay th|e result|
|00000300| 73 20 6f 6e 20 74 68 65 | 20 73 63 72 65 65 6e 20 |s on the| screen |
|00000310| 29 2e 20 54 68 65 20 63 | 6f 6d 70 69 6c 65 72 0a |). The c|ompiler.|
|00000320| 3e 20 73 65 65 6d 73 20 | 74 6f 20 67 6f 20 74 68 |> seems |to go th|
|00000330| 72 6f 75 67 68 20 74 68 | 65 20 63 6f 64 65 20 63 |rough th|e code c|
|00000340| 6f 72 72 65 63 74 6c 79 | 20 62 75 74 20 69 67 6e |orrectly| but ign|
|00000350| 6f 72 65 73 20 74 68 69 | 73 20 76 65 72 79 0a 3e |ores thi|s very.>|
|00000360| 20 6c 61 73 74 20 66 75 | 6e 63 74 69 6f 6e 2e 20 | last fu|nction. |
|00000370| 49 20 72 65 61 64 20 69 | 6e 20 74 68 65 20 46 41 |I read i|n the FA|
|00000380| 51 27 73 20 74 68 61 74 | 20 66 66 6c 75 73 68 28 |Q's that| fflush(|
|00000390| 73 74 64 6f 75 74 29 20 | 63 6f 75 6c 64 20 62 65 |stdout) |could be|
|000003a0| 20 74 68 65 0a 3e 20 73 | 6f 6c 75 74 69 6f 6e 2e | the.> s|olution.|
|000003b0| 20 49 27 76 65 20 74 72 | 79 65 64 20 69 74 2c 20 | I've tr|yed it, |
|000003c0| 62 75 74 20 69 74 20 64 | 6f 65 73 6e 27 74 20 77 |but it d|oesn't w|
|000003d0| 6f 72 6b 2e 0a 0a 66 66 | 6c 75 73 68 28 29 20 69 |ork...ff|lush() i|
|000003e0| 73 20 70 61 72 74 20 6f | 66 20 74 68 65 20 62 75 |s part o|f the bu|
|000003f0| 66 66 65 72 65 64 20 73 | 74 64 69 6f 20 6c 69 62 |ffered s|tdio lib|
|00000400| 72 61 72 79 2e 20 20 57 | 68 65 6e 20 79 6f 75 20 |rary. W|hen you |
|00000410| 63 61 6c 6c 0a 66 66 6c | 75 73 68 28 73 74 64 6f |call.ffl|ush(stdo|
|00000420| 75 74 29 2c 20 69 74 20 | 74 65 6c 6c 73 20 74 68 |ut), it |tells th|
|00000430| 65 20 73 74 64 69 6f 20 | 6c 69 62 72 61 72 79 20 |e stdio |library |
|00000440| 74 6f 20 66 6c 75 73 68 | 20 61 6e 79 20 62 75 66 |to flush| any buf|
|00000450| 66 65 72 65 64 20 6f 75 | 74 70 75 74 0a 74 6f 20 |fered ou|tput.to |
|00000460| 74 68 65 20 73 63 72 65 | 65 6e 2e 2e 2e 20 20 48 |the scre|en... H|
|00000470| 6f 77 65 76 65 72 2c 20 | 49 20 62 65 6c 69 65 76 |owever, |I believ|
|00000480| 65 20 74 68 61 74 20 62 | 79 20 41 4e 53 49 20 73 |e that b|y ANSI s|
|00000490| 74 61 6e 64 61 72 64 73 | 20 74 68 61 74 20 77 68 |tandards| that wh|
|000004a0| 65 6e 20 61 0a 70 72 6f | 67 72 61 6d 20 63 61 6c |en a.pro|gram cal|
|000004b0| 6c 73 20 65 78 69 74 28 | 29 2c 20 6f 72 20 65 78 |ls exit(|), or ex|
|000004c0| 69 74 73 20 62 79 20 72 | 65 61 63 68 69 6e 67 20 |its by r|eaching |
|000004d0| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 6d |the end |of the m|
|000004e0| 61 69 6e 20 66 75 6e 63 | 74 69 6f 6e 2c 0a 61 6c |ain func|tion,.al|
|000004f0| 6c 20 73 74 64 69 6f 20 | 62 75 66 66 65 72 73 20 |l stdio |buffers |
|00000500| 61 72 65 20 66 6c 75 73 | 68 65 64 2e 20 20 59 6f |are flus|hed. Yo|
|00000510| 75 20 6d 69 67 68 74 20 | 77 61 6e 74 20 74 6f 20 |u might |want to |
|00000520| 6c 6f 6f 6b 20 61 74 20 | 74 68 65 20 72 65 73 74 |look at |the rest|
|00000530| 20 6f 66 0a 79 6f 75 72 | 20 63 6f 64 65 20 63 61 | of.your| code ca|
|00000540| 72 65 66 75 6c 6c 79 20 | 74 6f 20 6c 6f 6f 6b 20 |refully |to look |
|00000550| 66 6f 72 20 61 6e 79 74 | 68 69 6e 67 20 74 68 61 |for anyt|hing tha|
|00000560| 74 20 6d 69 67 68 74 20 | 6f 76 65 72 77 72 69 74 |t might |overwrit|
|00000570| 65 20 70 61 72 74 20 6f | 66 0a 74 68 65 20 73 74 |e part o|f.the st|
|00000580| 61 63 6b 20 6f 72 20 68 | 65 61 70 2e 2e 2e 20 20 |ack or h|eap... |
|00000590| 4c 65 61 64 69 6e 67 20 | 74 6f 20 64 69 73 61 73 |Leading |to disas|
|000005a0| 74 65 72 6f 75 73 2c 20 | 75 6e 6b 6e 6f 77 6e 20 |terous, |unknown |
|000005b0| 72 65 73 75 6c 74 73 2e | 0a 0a 2d 2d 20 0a 4d 69 |results.|..-- .Mi|
|000005c0| 63 68 61 65 6c 20 44 6f | 75 67 6c 61 73 73 0a 54 |chael Do|uglass.T|
|000005d0| 65 78 61 73 20 4e 65 74 | 77 6f 72 6b 69 6e 67 2c |exas Net|working,|
|000005e0| 20 49 6e 63 2e 0a 0a 22 | 49 20 64 69 64 6e 27 74 | Inc..."|I didn't|
|000005f0| 20 63 68 61 6e 67 65 20 | 61 20 74 68 69 6e 67 20 | change |a thing |
|00000600| 61 6e 64 20 66 72 6f 6d | 20 74 68 65 20 6d 6f 6d |and from| the mom|
|00000610| 65 6e 74 20 49 20 64 69 | 64 6e 27 74 20 63 68 61 |ent I di|dn't cha|
|00000620| 6e 67 65 20 69 74 2c 0a | 69 74 20 64 6f 65 73 6e |nge it,.|it doesn|
|00000630| 27 74 20 77 6f 72 6b 20 | 61 6e 79 6d 6f 72 65 2e |'t work |anymore.|
|00000640| 22 20 2d 2d 20 41 6e 6f | 6e 79 6d 6f 75 73 0a |" -- Ano|nymous. |
+--------+-------------------------+-------------------------+--------+--------+